[SPARK-37465][Python][WIP] Raise minimum supported Pandas version to 1.0.0 #34724
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This raises Spark's minimum supported Pandas version to 1.0.0. If the installed version is below, Spark fails with: "Pandas >= 1.0.0 must be installed; however, your version was ..."
Why are the changes needed?
Some of the Pandas-on-Spark tests do not pass with Pandas < 1.0, see SPARK-37465.
Does this PR introduce any user-facing change?
Yes, users with installed Pandas versions below 1.0 will see failures. Also Pandas 1.0 introduces breaks (listed here) which should not affect Spark's interaction with Pandas, but it might introduce breaks to user environments that get their Pandas version transitively through PySpark.
How was this patch tested?
Existing tests. The Pandas version used in Github actions is 1.3.3. I'll verify tests also pass with 1.0.0.